<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>新增第三方订单</title>
    <!--{include file="comm/icheck.tpl"}-->

    <style type="text/css">
        .form-horizontal .form-group {
            margin-right: 0;
            margin-left: 0;
        }
        .op {
            position: relative;
            float: right;
            top: 3px;
        }
    </style>
</head>

<body>
<div class="container" style="width:99%;margin: 0 auto;">

    <div class="title">
        <h2 class="tac">新增第三方订单</h2>
    </div>


    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">订单信息</h3>
        </div>
        <div class="panel-body form-inline">
            <table class="ebsig-text">
                <tr>
                    <td>
                        订单平台：<select class="form-control input-sm" id="billPlatform">
                            <option value="all">请选择</option>
                            <option value="2">天猫</option>
                            <option value="3">京东</option>
                            <option value="4">1号店</option>
                            <option value="5">QQ网购</option>
                            <option value="6">凡客</option>
                            <option value="7">苏宁易购</option>
                            <option value="8">易讯</option>
                            <option value="9">拍拍</option>
                            <option value="10">亚马逊</option>
                            <option value="11">当当</option>
                            <option value="12">淘宝</option>
                            <option value="13">实体店</option>
                        </select>
                    </td>
                    <td>
                        订单渠道：<select class="form-control input-sm" id="billChannel">
                            <option value="1">web</option>
                            <option value="2">wap</option>
                            <option value="4">app</option>
                            <option value="5">线下</option>
                        </select>
                    </td>
                    <td>
                        订单类型：<select class="form-control input-sm" id="billType">
                            <option value="1">正常订单</option>
                        </select>
                    </td>
                    <td>
                        订单状态：订单建立
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">客户信息</h3>
        </div>
        <div class="panel-body">
            <table class="ebsig-text">
                <tr>
                    <td width="26%">会员名：<!--{$customer_array.custID}--></td>
                    <td width="14%">会员姓名：<!--{$customer_array.custname}--></td>
                    <td width="14%">手机：<!--{$customer_array.mobile}--></td>
                    <td width="26%">Email：<!--{$customer_array.email}--></td>
                    <td width="20%">电话：<!--{$customer_array.phone}--></td>
                </tr>
                <tr>
                    <td>会员等级：<!--{$customer_array.rankName}--></td>
                    <td colspan="4">会员状态：
                        <!--{if !$customer_array}-->
                            &nbsp;
                        <!--{elseif $customer_array.useFlg == 1}-->
                            可用
                        <!--{elseif $customer_array.useFlg == 2}-->
                            禁用
                        <!--{/if}-->
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div class="panel panel-default">

        <div class="panel-heading">商品信息</div>

        <table class="table table-hover">

            <thead>
            <tr>
                <th width="200">商品编号</th>
                <th width="*">商品名称</th>
                <th width="300">规格</th>
                <th width="60">销售价</th>
                <th width="60">实售价</th>
                <th width="60">积分价</th>
                <th width="50">积分</th>
                <th width="120">购买数量</th>
                <th width="50">操作</th>
            </tr>
            </thead>


            <tbody id="general_line"></tbody>

            <tbody>
            <tr>
                <td colspan="10" class="form-inline">
                    <input type="text" class="form-control" id="goods_code" placeholder="商品编号" style="width: 200px;" />
                    <input type="text" class="form-control" id="goods_name" placeholder="商品名称"  style="width: 300px;" />
                </td>
            </tr>
            </tbody>

        </table>

    </div>

    <div class="panel panel-default">
        <div class="panel-heading">会员收货地址</div>
        <ul class="list-group radio-box">
            <li class="list-group-item" id="address_list">
                <button type="button" class="btn btn-default" style="width: 100%;" onclick="bill.deliver.alter.open(0);">点击新增收货地址</button>
            </li>
        </ul>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">配送方式</div>
        <ul class="list-group radio-box" id="send_list"></ul>
        <div class="panel-footer form-horizontal">
            <div class="form-group" style="margin-bottom:0;">
                <label for="send_time" class="col-sm-2 control-label" style="width: 100px;">配送时间</label>
                <div class="col-sm-10">
                    <select class="form-control" id="send_time" style="width: 300px;">
                        <!--{foreach from=$send_time_array item=send_time}-->
                            <option value="<!--{$send_time.itemID}-->"><!--{$send_time.itemName}--></option>
                        <!--{/foreach}-->
                    </select>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">支付方式</div>
        <ul class="list-group radio-box" id="pay_list"></ul>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">会员发票</div>
        <ul class="list-group radio-box">
            <li class="list-group-item">
                <input type="radio" id="invoice-square-radio-0" name="invoice-radio" checked>
                <label for="invoice-square-radio-0">不开发票</label>
            </li>
            <li class="list-group-item" id="invoice_list">
                <button type="button" class="btn btn-default" style="width: 100%;" onclick="bill.invoice.edit.open(0);">点击新增发票</button>
            </li>
        </ul>
        <div class="panel-footer form-horizontal">
            <div class="form-group" style="margin-bottom:0;">
                <label for="invoice_content" class="col-sm-2 control-label" style="width: 100px;">发票内容</label>
                <div class="col-sm-10">
                    <select class="form-control" id="invoice_content" style="width: 200px;">
                        <!--{foreach from=$invoice_content_array item=invoice_content}-->
                            <option value="<!--{$invoice_content.itemID}-->"><!--{$invoice_content.itemName}--></option>
                        <!--{/foreach}-->
                    </select>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">订单备注</h3>
        </div>
        <div class="panel-body">
            <textarea class="form-control" style="height: 70px; width: 100%;" id="remark"></textarea>
        </div>
    </div>


    <div class="bottom_fixbox">
        <div class="rectbox tac">
            赠送总积分：<span class="red" id="total_points">0</span>&nbsp;
            商品总数量：<span class="red" id="total_amount">0</span>&nbsp;
            商品总金额：<span class="red" id="total_money">0.00</span>&nbsp;
            实售总金额：<span class="red" id="total_reality_money">0.00</span>&nbsp;
            运费：<span class="red" id="freight">0.00</span>&nbsp;
            立减金额：<span class="red" id="total_subtract_money">0.00</span>&nbsp;
            应收总金额：<span class="red" id="total_receivable_money">0.00</span>&nbsp;
            积分总价格：<span class="red" id="total_points_price">0.00</span>&nbsp;
            <input type="button" value="提交" class="btn" onclick="bill.global.submit.open();" />&nbsp;
            <input type="button" value="关闭" class="btn" onclick="E.closeWindows();" />
        </div>
    </div>

    <!--{include file='comm/footer.tpl'}-->

</div>

<!--{include file='comm/deliver.tpl'}-->

<script type="text/javascript">

    var bill = {

        args: {

            bill_no: "",

            pcustID: "<!--{$customer_array.pcustID}-->",

            cashAmt: 0,

            freight: 0,

            is_freight_free: 0,

            balance: 0,

            buy_log: {
                pcustID: <!--{$customer_array.pcustID}-->,
                deliverID: <!--{$bill_array.deliverid|default:0}-->,
                send_region_id: <!--{$bill_array.sendTypeID|default:0}-->,
                payTypeID: <!--{$bill_array.payTypeID|default:0}-->,
                pay_type: <!--{$bill_array.pay_type|default:0}-->,
                payment_method_id: <!--{$bill_array.payment_method_id|default:0}-->,
                invoiceID: <!--{$bill_array.invoiceID|default:0}-->,
                send_time_id: <!--{$bill_array.deliver_send_time_id|default:0}-->
            },

            total: {

            }

        }

    };


    $(window).ready(function() {

        $('#invoice-square-radio-0').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });

        $('#invoice-square-radio-0').on('ifClicked', function() {
            bill.invoice.choose.start(0);
        });

    });


</script>
<script language="JavaScript" src="/quanliadmin/docroot/js/bill_3rd.js?t=20140430" type="text/javascript"></script>
<script type="text/javascript">
    bill.global.load.start();
</script>

</body>
</html>
